package com.hyf.collections;

import org.apache.commons.collections.Transformer;
import org.apache.commons.collections.functors.InvokerTransformer;

import java.io.*;

/**
 * @author baB_hyf
 * @date 2021/03/28
 */
public class T1 {

    public static void main(String[] args) throws IOException, ClassNotFoundException {
        Transformer transformer = new InvokerTransformer("exec",
                new Class[]{String.class},
                new Object[]{"calc"});
        transformer.transform(Runtime.getRuntime());
    }
}
